# @Author   :   yuanxi
# @Time      :  2022/1/11

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.annApplication.healthClassPage import healthClassPage


class HealthClassCase(UIParent):

    @classmethod
    def test_healthIndexCheck(self):
        '''健康分首页校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("健康分")
        authorizePage.ifAuthorize()
        status = healthClassPage.indexClass()
        asserts.true(status, "健康分首页校验")
